using System;
using System.Collections.Generic;

namespace SILAS.Entidades
{
    public class Ubigeo
    {
        public Ubigeo()
        {
            this.Distritoes = new List<Distrito>();
            this.Sectors = new List<Sector>();
            this.Ubigeo1 = new List<Ubigeo>();
        }

        public int IdUbigeo { get; set; }
        public Nullable<int> Provincia { get; set; }
        public Nullable<int> Distrito { get; set; }
        public Nullable<int> CentroPoblado { get; set; }
        public Nullable<int> Caserio { get; set; }
        public Nullable<int> Sector { get; set; }
        public string Nombre { get; set; }
        public Nullable<int> IdUbigeoR { get; set; }
        public virtual ICollection<Distrito> Distritoes { get; set; }
        public virtual ICollection<Sector> Sectors { get; set; }
        public virtual ICollection<Ubigeo> Ubigeo1 { get; set; }
        public virtual Ubigeo Ubigeo2 { get; set; }
    }
}
